﻿using PMP.Core.Entities;

namespace PMP.Application.Models;

/// <summary>
/// 添加项目
/// </summary>
public class AddProjectParam
{
    public int Id { get; set; }
    /// <summary>
    /// 项目名称
    /// </summary>
    public string ProjectName { get; set; } = string.Empty;
    /// <summary>
    /// 公司名称
    /// </summary>
    public string CompanyName { get; set; } = string.Empty;
    /// <summary>
    /// 项目来源
    /// </summary>
    public string ProjectSource { get; set; } = string.Empty;
    /// <summary>
    /// 项目标签
    /// </summary>
    public List<string> ProjectTags { get; set; } = new();
    /// <summary>
    /// 项目描述
    /// </summary>
    public string ProjectDescription { get; set; } = string.Empty;
    /// <summary>
    /// 项目需求
    /// </summary>
    public string ProjectDemand { get; set; } = string.Empty;
    /// <summary>
    /// 初步研判
    /// </summary>
    public string FirstProgress { get; set; } = string.Empty;
    /// <summary>
    /// 项目属地
    /// </summary>
    public string Location { get; set; }
    /// <summary>
    /// 邀请码
    /// </summary>
    public string InvitationCode { get; set; }
}

/// <summary>
/// 项目显示基本内容
/// </summary>
public class ProjectDisplayResponse : TbProject
{
    /// <summary>
    /// 最新进展人
    /// </summary>
    public string NewestProgressUserName { get; set; } = string.Empty;
    
    /// <summary>
    /// 最新进展时间
    /// </summary>
    public DateTime? NewestProgressTime { get; set; } 
}

public class ModelTimeLine
{
    public DateTime Time { get; set; }
    public string Content { get; set; }
}